<!--
*Author：jxx
 *Contact：283591387@qq.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/system/warehouseininfos/Warehouseininfo.jsx此处编写
 -->
<template>
    <view-grid ref="grid" :columns="columns" :detail="detail" :editFormFields="editFormFields"
        :editFormOptions="editFormOptions" :searchFormFields="searchFormFields" :searchFormOptions="searchFormOptions"
        :table="table" :extend="extend">
    </view-grid>
</template>
<script>
import extend from "@/extension/system/warehouseininfos/Warehouseininfo.jsx";
import { ref, defineComponent } from "vue";
export default defineComponent({
    setup() {
        const table = ref({
            key: 'ProductId',
            footer: "Foots",
            cnName: '入库详情表',
            name: 'warehouseininfos/Warehouseininfo',
            url: "/Warehouseininfo/",
            sortName: "ProductId"
        });
        const editFormFields = ref({});
        const editFormOptions = ref([]);
        const searchFormFields = ref({});
        const searchFormOptions = ref([]);
        const columns = ref([{ field: 'ProductId', title: '产品ID', type: 'string', width: 220, readonly: true, require: true, align: 'left', sort: true },
        { field: 'ProductName', title: '产品名称', type: 'string', width: 220, readonly: true, align: 'left' },
        { field: 'ProductCode', title: '产品编码', type: 'string', width: 220, readonly: true, align: 'left' },
        { field: 'ProductSKU', title: '规格', type: 'string', width: 220, readonly: true, align: 'left' },
        { field: 'Batch', title: '批次', type: 'int', width: 110, align: 'left' },
        { field: 'Price', title: '单价', type: 'decimal', width: 110, align: 'left' },
        { field: 'WarehouseinNumber', title: '入库数', type: 'int', width: 110, align: 'left' },
        { field: 'SumPrice', title: '总价', type: 'decimal', width: 110, align: 'left' },
        { field: 'WarehouseLocationId', title: '库位', type: 'string', width: 220, align: 'left' },
        { field: 'IsDel', title: '是否删除', type: 'int', width: 110, hidden: true, align: 'left' },
        { field: 'WarehouseoutintoId', title: '订单主键', type: 'int', width: 110, hidden: true, require: true, align: 'left' }]);
        const detail = ref({
            cnName: "#detailCnName",
            table: "#detailTable",
            columns: [],
            sortName: "",
            key: ""
        });
        return {
            table,
            extend,
            editFormFields,
            editFormOptions,
            searchFormFields,
            searchFormOptions,
            columns,
            detail,
        };
    },
});
</script>
